
/**
 * dismissable-alert
 * @description
 *  	wires up page level alert close buttons
 */

foo.mod.dismissable_alert = {
	init: function(){
		foo.log('foo.dismissable-alert.init');
		var $ = jQuery;
		$('.dismissable-alert a.close').click(function(e){
			e.preventDefault();
			$(this).hide().parents('div.dismissable-alert').slideUp(function(){
				// do something to suppress these alerts on the backend
			});
		});
	}
};